home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 2 (Reseller) / Apple R&P Lib Reseller v2.0.iso / 4-Fonts & Software / Demo Software / AppMaker / Demo AppMaker™ / Demo AppMaker™.rsrc / TmpP_536_File.Revert < prev    next >
Text File  |  1989-04-09  |  372b  |  21 lines

  1. {----------}
  2. Procedure DoRevert;
  3. var
  4.     fileName:        Str255;
  5.     ok:                boolean;
  6. Begin
  7.     ok := true;
  8.     if cur^.dirty then begin
  9.         GetWTitle (curWindow, fileName);
  10.         ParamText (fileName, '', '', '');
  11.         ok := Confirm (RevertID);
  12.     end; {if}
  13.     if ok then begin
  14.         ok := ReadApplFile (cur^.fileNum);
  15.     end;
  16.     if ok then begin
  17.         InvalRect (curWindow^.portRect);
  18.     end; {if}
  19. End; {DoRevert}
  20.  
  21.